package cn.yangliu.nacos.comm.handler;

import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public interface ResultConverter {

    /**
     * Convert object.
     *
     * @param result             the result
     * @param serverHttpRequest  the server http request
     * @param serverHttpResponse the server http response
     * @return the object
     */
    Object convert(Object result, ServerHttpRequest serverHttpRequest,
                   ServerHttpResponse serverHttpResponse);

}
